package com.example.administrator.caigou51.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2016/9/13/013.
 */
public class CheckOrderBean {

    /**
     * address : [{"address":"发生的范德萨发生","areaid":"5","areaname":"甘肃","company_name":"","is_default":1,"itemid":"74","mobile":"13316004755","postcode":"321456","truename":"测试1","username":"123456"}]
     * discount_amount : 985.4292
     * goods : [{"amount":"802","itemid":"1230414868","number":"4","product_spec":"9片/板*14板/盒","promotion":"1","promotion_name":"直降10元","promotion_price":277,"ship_price":"287.000","status":"3","thumb":"http://img01.kzj365.com/images/201411/goods_img/9005_G_1417058444916.jpg","title":"汇仁 肾宝片(大)"}]
     * order_promotion_name : 订单满300元减50元,满500减80，满5000减800
     * pay_amount : 6874.53
     * total_amount : 7859.96
     */

    private double discount_amount;
    private String order_promotion_name;
    private double pay_amount;
    private double total_amount;
    /**
     * address : 发生的范德萨发生
     * areaid : 5
     * areaname : 甘肃
     * company_name :
     * is_default : 1
     * itemid : 74
     * mobile : 13316004755
     * postcode : 321456
     * truename : 测试1
     * username : 123456
     */

    private List<AddressEntity> address;
    /**
     * amount : 802
     * itemid : 1230414868
     * number : 4
     * product_spec : 9片/板*14板/盒
     * promotion : 1
     * promotion_name : 直降10元
     * promotion_price : 277
     * ship_price : 287.000
     * status : 3
     * thumb : http://img01.kzj365.com/images/201411/goods_img/9005_G_1417058444916.jpg
     * title : 汇仁 肾宝片(大)
     */

    private List<GoodsEntity> goods;

    public void setDiscount_amount(double discount_amount) {
        this.discount_amount = discount_amount;
    }

    public void setOrder_promotion_name(String order_promotion_name) {
        this.order_promotion_name = order_promotion_name;
    }

    public void setPay_amount(double pay_amount) {
        this.pay_amount = pay_amount;
    }

    public void setTotal_amount(double total_amount) {
        this.total_amount = total_amount;
    }

    public void setAddress(List<AddressEntity> address) {
        this.address = address;
    }

    public void setGoods(List<GoodsEntity> goods) {
        this.goods = goods;
    }

    public double getDiscount_amount() {
        return discount_amount;
    }

    public String getOrder_promotion_name() {
        return order_promotion_name;
    }

    public double getPay_amount() {
        return pay_amount;
    }

    public double getTotal_amount() {
        return total_amount;
    }

    public List<AddressEntity> getAddress() {
        return address;
    }

    public List<GoodsEntity> getGoods() {
        return goods;
    }

    public static class AddressEntity implements Serializable {

        private String areaname;
        private int is_default;
        private String postcode;
        private String username;
        private String address;
        private String areaid;
        private String charter;
        private String company_name;
        private String gsp;
        private String is_verified;
        private String itemid;
        private String license;
        private String mobile;
        private String note;
        private String truename;
        private String region_name;
        private String shipping_fee;
        private String addr_type;
        private String text;

        public String getShipping_fee() {
            return shipping_fee;
        }

        public void setShipping_fee(String shipping_fee) {
            this.shipping_fee = shipping_fee;
        }

        public String getAddr_type() {
            return addr_type;
        }

        public void setAddr_type(String addr_type) {
            this.addr_type = addr_type;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }

        public String getRegion_name() {
            return region_name;
        }

        public void setRegion_name(String region_name) {
            this.region_name = region_name;
        }

        public String getCharter() {
            return charter;
        }

        public void setCharter(String charter) {
            this.charter = charter;
        }

        public String getGsp() {
            return gsp;
        }

        public void setGsp(String gsp) {
            this.gsp = gsp;
        }

        public String getIs_verified() {
            return is_verified;
        }

        public void setIs_verified(String is_verified) {
            this.is_verified = is_verified;
        }

        public String getLicense() {
            return license;
        }

        public void setLicense(String license) {
            this.license = license;
        }

        public String getNote() {
            return note;
        }

        public void setNote(String note) {
            this.note = note;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public void setAreaid(String areaid) {
            this.areaid = areaid;
        }

        public void setAreaname(String areaname) {
            this.areaname = areaname;
        }

        public void setCompany_name(String company_name) {
            this.company_name = company_name;
        }

        public void setIs_default(int is_default) {
            this.is_default = is_default;
        }

        public void setItemid(String itemid) {
            this.itemid = itemid;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public void setPostcode(String postcode) {
            this.postcode = postcode;
        }

        public void setTruename(String truename) {
            this.truename = truename;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getAddress() {
            return address;
        }

        public String getAreaid() {
            return areaid;
        }

        public String getAreaname() {
            return areaname;
        }

        public String getCompany_name() {
            return company_name;
        }

        public int getIs_default() {
            return is_default;
        }

        public String getItemid() {
            return itemid;
        }

        public String getMobile() {
            return mobile;
        }

        public String getPostcode() {
            return postcode;
        }

        public String getTruename() {
            return truename;
        }

        public String getUsername() {
            return username;
        }
    }

    public static class GoodsEntity implements Serializable{
        private String amount;
        private String itemid;
        private String number;
        private String product_spec;
        private String promotion;
        private String promotion_name;
        private float promotion_price;
        private String ship_price;
        private String status;
        private String thumb;
        private String title;
        private String  sale_range;
        public void setAmount(String amount) {
            this.amount = amount;
        }

        public void setItemid(String itemid) {
            this.itemid = itemid;
        }

        public void setNumber(String number) {
            this.number = number;
        }

        public void setProduct_spec(String product_spec) {
            this.product_spec = product_spec;
        }

        public void setPromotion(String promotion) {
            this.promotion = promotion;
        }

        public void setPromotion_name(String promotion_name) {
            this.promotion_name = promotion_name;
        }

        public void setPromotion_price(float promotion_price) {
            this.promotion_price = promotion_price;
        }

        public void setShip_price(String ship_price) {
            this.ship_price = ship_price;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public void setThumb(String thumb) {
            this.thumb = thumb;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getAmount() {
            return amount;
        }

        public String getItemid() {
            return itemid;
        }

        public String getNumber() {
            return number;
        }

        public String getProduct_spec() {
            return product_spec;
        }

        public String getPromotion() {
            return promotion;
        }

        public String getPromotion_name() {
            return promotion_name;
        }

        public float getPromotion_price() {
            return promotion_price;
        }

        public String getShip_price() {
            return ship_price;
        }

        public String getStatus() {
            return status;
        }

        public String getThumb() {
            return thumb;
        }

        public String getTitle() {
            return title;
        }

        public String getSale_range() {
            return sale_range;
        }

        public void setSale_range(String sale_range) {
            this.sale_range = sale_range;
        }
    }
}
